from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'icssite.views.home', name='home'),
    # url(r'^icssite/', include('icssite.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    url(r'^$', 'icssite.cms.views.home'),
    url(r'^catalog/show/(?P<mid>\w+)/$', 'cms.views.catalog'),
    url(r'^article/list/(?P<cid>\w+)/$', 'cms.views.list_articles'),
    url(r'^article/get/article(?P<rid>\w+).html$', 'cms.views.get_article'),
    

)
urlpatterns += staticfiles_urlpatterns()

